package com.lucy.flow.processor;
import com.lucy.flow.domain.dto.FlowParam;
import com.lucy.flow.domain.entity.FlowWork;
import com.lucy.flow.model.BaseModel;
import com.lucy.flow.model.FlowModel;

/**
 * 节点处理器接口
 * @author MLD
 *
 */
public interface FlowNodeProcessor {
    /**
     * 要处理的节点类型
     * @return
     */
    public String getNodeType();
    /**
     * 流程节点处理方法
     */
    public void process(FlowWork flowWork, FlowModel flowModel, BaseModel currentNodeModel, FlowParam flowParam);
    /**
     * 流程节点驳回方法
     */
    public void back(FlowWork flowWork, FlowModel flowModel, BaseModel currentNodeModel, FlowParam flowParam);
}

